package com.ttj.service.impl;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ttj.domain.oracle.BUser;
import com.ttj.mapper.oracle.BUserMapper;
import com.ttj.service.BuserService;
import com.ttj.vo.BaseRes;
@Service
public class BuserServiceImpl implements BuserService {

	@Resource
	private BUserMapper buserMapper;
	
	@Override
	public BaseRes<BUser> login(String username, String password) {
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("username", username);
		map.put("password", password);
		BUser bUser = buserMapper.login(map);
		BaseRes<BUser> baseRes = new BaseRes<BUser>();
		baseRes.setData(bUser);
		return baseRes;
	}

}
